<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Admin_user')}:</label>
        <div class="col-xs-12 col-sm-8">
<!--            <input id="c-admin_user" class="form-control" name="row[admin_user]" type="number" value="{$row.admin_user|htmlentities}">-->
            <select id="c-admin_user" data-rule="required" class="form-control selectpicker" name="row[admin_user]">
                {foreach name="admin_userList" item="admin_user"}
                <option value="{$admin_user.id}" {in name="admin_user.id" value="$row.admin_user"}selected{/in}>{$admin_user.nickname}</option>
                {/foreach}
            </select>

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('County')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-county" data-rule="required" class="form-control selectpicker" name="row[county]">
                {foreach name="countyList" item="county"}
                <option value="{$county.id}" {in name="county.id" value="$row.county"}selected{/in}>{$county.county}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
